package com.example.xungeng2.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xungeng2.mapper.FengxianDateMapper;
import com.example.xungeng2.pojo.FengxianDate;
import com.example.xungeng2.service.FengxianDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FemgxianDateServiceImpl extends ServiceImpl<FengxianDateMapper, FengxianDate> implements FengxianDateService {

    @Autowired
    private FengxianDateService fengxianDateService;

    @Override
    public Page<FengxianDate> selectAllPage(Long page, Long limit) {
        Page<FengxianDate> fengxianDatePage = baseMapper.selectPage(new Page<>(page, limit), null);
        return fengxianDatePage;
    }
}
